package com.ldy.db.model;

public class Model {

	/**
	 * 字段名称
	 */
	private String fieldName;

	/**
	 * 存入数据库的字段名称
	 */
	private String columnName;

	/**
	 * 该id是否主键
	 */
	private boolean id;

	/**
	 * 该id是否是一个自增长的主键id
	 */
	private boolean generatedId;

	/**
	 * 描述该字段的长度
	 */
	private int width;

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public boolean isId() {
		return id;
	}

	public void setId(boolean id) {
		this.id = id;
	}

	public boolean isGeneratedId() {
		return generatedId;
	}

	public void setGeneratedId(boolean generatedId) {
		this.generatedId = generatedId;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

}
